﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DwarfInterpreter
{
    class UseFileToken : Token
    {
        private string filePath;

        public string GetFilePath()
        {
            return filePath;
        }

        public UseFileToken(string file)
        {
            filePath = file;
        }

        public static bool IsUseFileCommand(string[] str)
        {            
            return (str[0].CompareTo("usefile") == 0) && StringUtils.IsFilePath(str[1]);
        }
    }
}
